package com.jeejio.img.bean

import android.provider.MediaStore
import com.jeejio.img.picker.MediaColumn

import java.io.Serializable

/**
 * Author: JFangZ
 * Email:janezhang1901@163.com
 * Date: 2020/7/15 17:48
 * Description:
 */
open class MediaBean : Serializable {
    @MediaColumn("_display_name")
    var displayName: String? = null

    @MediaColumn("_data")
    var data: String? = null

    @MediaColumn("_size")
    var size: Long = 0

    @MediaColumn("bucket_id")
    var bucketId: String? = null

    @MediaColumn("bucket_display_name")
    var bucketDisplayName: String? = null

    @MediaColumn(MediaStore.Files.FileColumns.MIME_TYPE)
    var mimeType: String? = null

    override fun toString(): String {
        return "MediaBean(displayName=$displayName, data=$data, size=$size, bucketId=$bucketId, bucketDisplayName=$bucketDisplayName, mimeType=$mimeType)"
    }
}
